<template>
    <div>
      <m-head title="意见反馈"></m-head>
      <div class="list">
        <div class="item">
          <h3 class="title">反馈信息</h3>
          <div class="con">
            <p>为了更好地解决您反馈的问题，请尽量在出现问题的网络环境下进行反馈：</p>
              <div>
                <p>请填写您的意见和感想吧：</p>
                <textarea v-model="content"></textarea>
              </div>
              <div>
                <p>您的联系方式：</p>
                <input type="text" v-model="title" placeholder="QQ/邮箱/手机号">
              </div>
              <button @click="save">一键反馈</button>
          </div>
        </div>
        <div class="item">
          <h3 class="title">常见问题</h3>
          <div class="con">
            <ul>
              <li>
                <h3>观看课程或直播视频会对网络有要求吗？</h3>
                <p>建议你在Wifi环境下观看我们的视频，不建议在2G或网络环境不稳定的情况下观看视频。</p>
              </li>
              <li>
                <h3>为什么有时会无法观看正常视频？</h3>
                <p>建议你在Wifi环境下观看我们的视频，不建议在2G或网络环境不稳定的情况下观看视频。</p>
              </li>
              <li>
                <h3>观看我们的视频会减少手机话费吗？</h3>
                <p>建议你在Wifi环境下观看我们的视频，不建议在2G或网络环境不稳定的情况下观看视频。</p>
              </li>
            </ul>
          </div>
        </div>
      </div>
      <div></div>
    </div>
</template>

<script>
import MHead from './MHeader'
import * as info from '../api/info'
export default {
  name: 'feedback',
  components: {
    'm-head': MHead
  },
  data () {
    return {
      content: '',
      title: ''
    }
  },
  methods: {
    save () {
      info.feedbacks(this.title, this.content).then(res => {
        if (res.code == 200) {
          alert('反馈成功')
        }
      })
    }
  }
}
</script>

<style scoped>
.list{
  padding: .8rem .3rem;
}
.item{
  border: 1px solid #eee;
  position: relative;
  margin-bottom: 1rem;
  padding: .6rem .3rem .5rem;
}
.title{
  position: absolute;
  top: -.4rem;
  left: .3rem;
  border: 1px solid #007aff;
  height: .8rem;
  line-height: .8rem;
  padding: 0 .2rem;
  font-size: .42rem;
  z-index: 100;
  background: #fff;
  color: #007aff;
}
.con div{
  margin-bottom: .3rem;
}
.con p{
  font-size: .34rem;
  line-height: .58rem;
}
.con form{
  margin-top: .4rem;
  font-size: .34rem;
}
.con textarea{
  background: #f1f1f1;
  padding: .2rem;
  border: none;
  display: block;
  width: 100%;
  min-height: 2.6rem;
  line-height: .5rem;
  font-size: .34rem;
  margin-top: .2rem;
}
.con input{
  display: block;
  width: 100%;
  background: #f1f1f1;
  font-size: .34rem;
  margin-top: .2rem;
  height: .8rem;
  line-height: .8rem;
  padding-left: .2rem;
}
.con input:focus{
  outline: none;
}
.con button{
  display: block;
  width: 100%;
  border: none;
  height: .8rem;
  line-height: .8rem;
  background: #007aff;
  color: #fff;
  text-align: center;
  margin-top: .4rem;
  font-size: .36rem;
  letter-spacing: 2px;
}
.con li{
  border-bottom: 1px solid #eee;
  padding: .3rem 0;
}
.con li h3{
  padding-left: .4rem;
  position: relative;
  line-height: .8rem;
  font-size: .4rem;
  color: #333;
}
.con li h3::before{
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  border-radius: 100%;
  top: 50%;
  margin-top: -5px;
  left: 0;
  background: #eee;
}
.con li p{
  padding-left: .4rem;
  font-size: .34rem;
  line-height: .6rem;
  color: #666;
}
a{
}
</style>
